#include <iostream>
#include <string>
#include <clocale>
#include "interval.h"

using namespace std;
//using namespace Course::adt;

int main()
{
	setlocale (LC_ALL, "swedish");

	/*interval<int> m1;
	interval<double> m2;*/

	//Addition
	interval<double> m1(5,20);
	interval<double> m2(10,10);

	cout << "m1+m2=" << m1+m2 << endl;

	(m1+m2).print_realtive();

	//Subtraktion
	interval<double> m3(5,20);
	interval<double> m4(10,10);

	cout << "m3-m4=" << m3-m4 << endl;

	(m3+m4).print_realtive();

	//Multiplikation
	interval<double> m5(5,20);
	interval<double> m6(10,10);

	cout << "m5*m6=" << m5*m6 << endl;

	(m5+m6).print_realtive();

	//Division
	interval<double> m7(5,20);
	interval<double> m8(10,10);

	cout << "m7/m8=" << m7/m8 << endl;

	(m7+m8).print_realtive();


	system("PAUSE");
	return 0;
}